
import { MockMethod } from 'vite-plugin-mock'
export default [
    {
        url: '/api/menu',
        method: 'get',
        response: ({ }) => {
            return {
                code: 0,
                message: 'ok',
                data: {
                    menu: [
                        {
                            path: '/',
                            name: 'home',
                            label: '首页',
                            icon: 's-home',
                            url: 'Home/Home'
                        },
                        {
                            path: '/mall',
                            name: 'mall',
                            label: '商品管理',
                            icon: 'video-play',
                            url: 'MallManage/MallManage'
                        },
                        {
                            path: '/user',
                            name: 'user',
                            label: '用户管理',
                            icon: 'user',
                            url: 'UserManage/UserManage'
                        },
                        {
                            label: '其他',
                            icon: 'user',
                            children: [
                                {
                                    path: '/page1',
                                    name: 'page1',
                                    label: '页面1',
                                    icon: 'setting',
                                    url: 'Other/PageOne'
                                },
                                {
                                    path: '/page2',
                                    name: 'page2',
                                    label: '页面2',
                                    icon: 'setting',
                                    url: 'Other/PageTwo'
                                },
                            ]
                        },


                    ],
                }
            }
        },
    },
] as MockMethod[]